package router

import (
	"dict-server/controllers"
	"net/http"
)

// NewRouter创建路由实例并配置所有路由规则
func NewRouter(wordController *controllers.WordController) *http.ServeMux {
	mux := http.NewServeMux()

	// 注册单词相关路由
	mux.HandleFunc("GET /api/word/{english}", wordController.WordDetailHandler)

	return mux
}
